#include "util.h"

NSError *scalpPublishError(int code, NSString *message) {
	NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:@"The calendar could not be published." ,NSLocalizedDescriptionKey,
																		message, NSLocalizedRecoverySuggestionErrorKey, 
																		@"YES", @"CALPresentErrorKey", 
																		message, ScalpUtilityErrorKey, NULL];
	return [NSError errorWithDomain:ScalpErrorDomain code:code userInfo:userInfo];
}